all: clean add-server add-client example 

add-server: add_server.cc
	g++ -Wall add_server.cc -o add-server `pkg-config --cflags --libs dbus-1`
add-client: add_client.cc
	g++ -Wall add_client.cc -o add-client `pkg-config --cflags --libs dbus-1`

example:
	echo 'SEE: https://www.softprayog.in/programming/d-bus-tutorial'
	./add-server &
	exec ./add-client
clean:
	rm -rf add-*
	-killall add-server add-client
